@import "mixin";

.home {
  .banner {
    width: 100%;
    position: relative;
    img {
      width: 100%;
    }
    .search {
      position: absolute;
      right: 0;
      width: px2rem(353px);
      top: px2rem(50px);
      h1 {
        font-size: 16px;
        font-weight: normal;
        margin-bottom: px2rem(15px);
      }
      .con {
        input {
          width: px2rem(240px);
          height: 22px;
          line-height: 22px;
          border: 1px solid $color4;
          display: inline-block;
          vertical-align: top;
          padding-left: px2rem(15px);
          font-size: 12px;
        }
        span {
          background-color: $color4;
          display: inline-block;
          vertical-align: top;
          height: 22px;
          line-height: 22px;
          color: $color2;
          padding: 0 px2rem(15px);
        }
      }
    }
  }
  .nav {
    padding-left: px2rem(10px);
    padding-right: px2rem(10px);
    ul {
      @include box-flex;
      flex-wrap: wrap;
      align-items: center;
      li {
        width: 50%;
        padding-left: px2rem(10px);
        padding-right: px2rem(10px);
        margin-top: px2rem(15px);
        a {
          align-items: center;
          text-align: center;
          height: px2rem(300px);
          @include box-shadow(0 3px 15px rgba(180, 180, 180, .2), 0 3px 15px rgba(180, 180, 180, .2), 0 3px 15px rgba(180, 180, 180, .2));
          /* -webkit-box-shadow: 0 3px 20px rgba(0, 0, 0, .1);
           -moz-box-shadow: 0 3px 20px rgba(0, 0, 0, .1);
           box-shadow: 0 3px 20px rgba(0, 0, 0, .1);*/
          span {
            font-size: 16px;
          }
        }
      }
    }
    &-1 a, &-6 a, &-8 a, &-9 a {
      display: block;
      background: url("../images/home/nav1.png") $color2 no-repeat;
      -webkit-background-size: contain;
      background-size: contain;
      text-align: right;
      padding: 15px 20px 0 20px;
      span {
        display: block;
        text-align: right;
      }
    }
    &-2 a, &-4 a, &-7 a, &-10 a {
      @include box-flex;
      background-color: $color4;
      color: $color2;
      justify-content: center;
      span {
        position: relative;
        &:before, &:after {
          font-size: 24px;
          position: absolute;
          display: block;
        }
        &:before {
          content: '“';
          top: -15px;
          left: -26px;
        }
        &:after {
          content: '”';
          bottom: -30px;
          right: -26px;
        }
      }
    }
    &-3 a, &-5 a {
      @include box-flex;
      background-color: #6ec281;
      color: $color2;
      flex-wrap: wrap;
      justify-content: center;
      p {
        padding: 0 15px;
        font-size: 12px;
        color: #f5f5f5;
      }
    }
    &-4 a {
      background-color: $color2;
      color: $color1;
    }
    &-5 a {
      background-color: $color2;
      color: $color1;
      p {
        color: $color5;
      }
    }
    &-6 a {
      background: url("../images/home/nav2.png") #d1eadc no-repeat;
      -webkit-background-size: contain;
      background-size: contain;
    }
    &-7 a {
      background-color: $color4;
    }
    &-8 a {
      background: url("../images/home/nav3.png") $color2 no-repeat;
      -webkit-background-size: contain;
      background-size: contain;
    }
    &-9 a {
      background: url("../images/home/nav4.png") $color2 no-repeat right bottom;
      -webkit-background-size: contain;
      background-size: contain;
      span {
        text-align: left;
      }
    }
    &-10 a {
      background-color: #3dacf1;
      span {
        font-size: 16px !important;
      }
    }
  }
  .suggest {
    width: 100%;
    background: url("../images/home/suggest.jpg") no-repeat;
    -webkit-background-size: cover;
    background-size: cover;
    margin-top: px2rem(20px);
    padding-top: px2rem(100px);
    padding-bottom: px2rem(100px);
    color: $color2;
    text-align: center;
    position: relative;
    h1 {
      font-size: 20px;
      font-weight: normal;
    }
    h2 {
      font-size: 14px;
      margin-top: 10px;
      font-weight: normal;
    }
    .submit {
      position: relative;
      width: 70%;
      @include center-block;
      textarea {
        width: 100%;
        text-indent: 10px;
        margin-top: 15px;
        height: 80px;
        outline: none;
        border: none;
        background: #1cb2af;
        @include rounded(16px);
        font-size: 12px;
        padding: 0 10px;
        color: #15918f;
        line-height: 26px;
      }
      .btn {
        position: absolute;
        bottom: 5px;
        right: 8px;
      }
      span {
        font-size: 12px;
      }
    }
  }
}